package com.zme.entity;

import java.util.HashSet;
import java.util.Set;

public class User {
    private Long userId;
    private String userName;
    private String userPassword;
    private Set<Role> roles = new HashSet<>();

    public User() {
    }

    public User(String userName, String userPassword, Set<Role> roles) {
        this.userName = userName;
        this.userPassword = userPassword;
        this.roles = roles;
    }

    public User(Long userId, String userName, String userPassword, Set<Role> roles) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.roles = roles;
    }

    public Long getUserId() {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public Set<Role> getRoles() {
        return roles;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public void setRoles(Set<Role> roles) {
        this.roles = roles;
    }
}
